/**
 * Created by developer on 17-2-28.
 */
var gulp = require("gulp");
var sass = require("gulp-sass");
var autoprefixer = require("gulp-autoprefixer");

gulp.task("compile-scss",function () {

    gulp.src("./statics/style/*.scss")
        .pipe(sass().on("error",sass.logError))
        .pipe(gulp.dest("./statics/style/"));

});

gulp.task("compile-sass",function () {

    gulp.src("./styles/index.scss")
        .pipe(sass().on("error",sass.logError))
        .pipe(gulp.dest("./statics/style/"));

});

gulp.task("default",function () {

    gulp.watch("./statics/style/*.scss",["compile-scss"])
})